#include<stdio.h>
#define N 50

void main()
{
    int arr[3][4]={{1,2,3,4},{5,6,2,8},{9,10,11,12}};
    int (*p)[4],*q;
    int r,c,i,j;
    scanf("r=%d,c=%d",&r,&c);
    int min=arr[r][c];
    for(p=arr;p<arr+3;p++){
        for(q=p;q<p+1;q++){
            printf("%d ",*q);
            if(*q<min && (*p==(&arr[r])||*q==(*p)[c])) min=*q;
        }
        printf("\n");
    }
    printf("a(%d,%d)=%d\n",r,c,arr[r][c]);
    if(arr[r][c]==min)  printf("this point is a saddle point.");
    else   printf("this point is not a saddle point.");
}